package streamforce.crypto;

import java.net.InetSocketAddress;


/**
 * @author ttadinh
 * contains the user decryption key, to be forwarded to the cloud, and then the user
 */
public class UKMessage extends Message{

	int userId, beta, alpha;
	byte[] key;
	byte[] pubK;
	byte[] tK;
	byte[] mask;
	
	public UKMessage(int ui, byte[] pk, byte[] tk, byte[] k){
		super(null,null,null,Message.FROM_OWNER);
		this.userId = ui;
		this.key = k;
		this.pubK = pk;
		this.tK = tk;		
	}
		
	public UKMessage(int ui, byte[] pk, byte[] tk, byte[] k, byte[] mask, int beta, int alpha){
		super(null,null,null,Message.FROM_OWNER);
		this.userId = ui;
		this.key = k;
		this.pubK = pk;
		this.tK = tk;
		this.mask = mask;
		this.beta = beta;
		this.alpha = alpha;
	}
	
	public int getAlpha(){
		return this.alpha;
	}
	
	public int getBeta(){
		return this.beta;
	}
	
	public byte[] getMask(){
		return this.mask;
	}
	
	public byte[] getTransformKey(){
		return this.tK;
	}
	
	public byte[] getPubKey(){
		return this.pubK;
	}
	
	public int getUserId() {
		return userId;
	}



	public byte[] getKey() {
		return key;
	}


}
